package com.epam.Accessories;


public class Ground extends Accessories {

    public Ground(String name, double price, AccessoriesQuality quality, GroundType type) {
        super(name, price, quality);

        this.type = type;
    }

    public enum GroundType {GRAINED,SHALLOW,QUARTZ}

    private GroundType type;

    public GroundType getType() {
        return type;
    }

    public void setType(GroundType type) {
        this.type = type;
    }


    @Override
    public String toString() {
        return "Ground for Aquarium [ Name: "+getName()+"; Price: "+getPrice()+
                "; Quality: "+ getQuality()+"Ground Type: "+getType()+"]";
    }
}
